package com.sagframe.sagacity.sqltoy.plus;

import com.sagframe.sagacity.sqltoy.plus.dao.*;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SqlToyPlusConfiguration {

    @Bean
    public SqlToySinFiledMappingStrategy getSqlToySinFiledMappingStrategy() {
        return new SqlToySinFiledMappingStrategy();
    }

    @Bean
    public SqlToyMultiFiledMappingStrategy getSqlToyMultiFiledMappingStrategy() {
        return new SqlToyMultiFiledMappingStrategy();
    }

    @Bean
    public SqlToyEntityMetaCache getSqlToyEntityMetaCache() {
        return new SqlToyEntityMetaCache();
    }

    @Bean
    @Qualifier("sqlToyHelperDao")
    public SqlToyHelperDao getSqlToyHelperDao() {
        return new SqlToyHelperDaoImpl();
    }
}
